package com.zqf.designpattern.strategyPattern;

public class StrategyDo {
    public static void doit(){
        Context ctx=new Context(new StrategyA());
        ctx.algorithm();

        ctx=new Context(new StrategyB());
        ctx.algorithm();

        ctx=new Context(new StrategyC());
        ctx.algorithm();
    }
}
